//创建横向图标的函数
var iconArr = [
"img/4.png",
"img/5.png",
"img/7.png",
"img/8.png"

];
var iconTitle=["天天酷跑","英雄联盟","天天酷跑","英雄联盟"];
for (var i = 0 ; i < iconArr.length ;i++) {
	var icon = createIcon(iconArr[i],iconTitle[i]);
	$(".a_wrap2").append(icon);
}
function createIcon(img,title) {
	return $('<li class="a_box"><div class="a_gift"><div class="a_box1"><i class="a_title1">'+title+'</i><img class="a_pic1" src="'+img+'"/></div><div class="a_box2"><i class="a_date">领取条件:连续签到15天</i><input class="a_txt10" type="text" value="15sd4f35a2dgf1" /><i class="a_get">失效日期:2016-12-12</i></div><div class="a_box3"><button class="a_copy">复制</button></div></div><div class="a_box4"><i>使用教程:进入游戏主页面-点击右上角设置-点击兑换-输入兑换 码-确定领奖</i></div></li>')

};


//点击关注改变颜色
$(".b_focusBtn").click(function () {
	var text = $(this).text();
	if (text == "关注") {
		$(this).css({
			backgroundColor:"#FFFFFF",
			color: "#FE786F",
			border:"1px solid #FE786F"
		});
		$(this).text("取消关注")
	}else{
		$(this).css({
			backgroundColor:"#FE786F",
			color: "#FFFFFF",
			border:"none"
		});
		$(this).text("关注")
	}
})
